import com.guos.common.model.Person;

/**
 * 每一行代码，都是改变世界的力量
 *
 * @author 郭帅
 * @date 2022/12/5 15:39
 */
public class TestClassInit {

    public static void main(String[] args) throws Exception {
        Class<?> clazz1 = Person.class;
        Class<?> clazz2 = Class.forName("com.guos.common.model.Person");
        Class<?> clazz3 = new Person().getClass();
        System.out.println(clazz1.hashCode());
        System.out.println(clazz2.hashCode());
        System.out.println(clazz3.hashCode());
        System.out.println(clazz1 == clazz2);
        System.out.println(clazz1 == clazz3);
        System.out.println(clazz2 == clazz3);
    }
}
